cmake_minimum_required(VERSION 3.5)

project(car_lpr)

find_package(OpenCV REQUIRED PATHS /home/lx/ NO_DEFAULT_PATH)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -pthread")

set(CMAKE_EXE_LINKER_FLAGS "-lpthread")

include_directories(/home/lx/SmartPipe/include/apis/
                    /home/lx/.conda/envs/smartpipe/include/python3.8/
                    ${OpenCV_INCLUDE_DIRS})
# 生成可执行文件
add_executable(car_lpr 
                /home/lx/SmartPipe/apps/car_license_plate_recognition/car_license_plate_recognition.cpp)

# 可执行文件链接库
target_link_libraries(car_lpr
                    smartpipe
                    freetype
                    ${OpenCV_LIBS}
                    /home/lx/.conda/envs/smartpipe/lib/libpython3.8.so)